home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / fgl110c.zip / 07-02.C < prev    next >
Text File  |  1992-01-31  |  738b  |  42 lines

  1. #include <fastgraf.h>
  2. #include <string.h>
  3.  
  4. void main(void);
  5. void put_string(char*,int,int);
  6.  
  7. void main()
  8. {
  9.    int old_mode;
  10.    int row, column;
  11.  
  12.    old_mode = fg_getmode();
  13.    fg_setmode(3);
  14.    fg_cursor(0);
  15.  
  16.    fg_setattr(14,0,0);
  17.    put_string("yellow",0,0);
  18.  
  19.    fg_setattr(10,0,0);
  20.    fg_where(&row,&column);
  21.    put_string("green",row,column+1);
  22.  
  23.    fg_setattr(12,0,1);
  24.    fg_where(&row,&column);
  25.    put_string("blinking",row,column+1);
  26.  
  27.    fg_setattr(12,7,0);
  28.    put_string(" Press any key. ",24,0);
  29.    fg_waitkey();
  30.  
  31.    fg_setmode(old_mode);
  32.    fg_reset();
  33. }
  34.  
  35. void put_string(string,row,column)
  36. char *string;
  37. int row, column;
  38. {
  39.    fg_locate(row,column);
  40.    fg_text(string,strlen(string));
  41. }
  42.